package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author hyy
 * @version 1.0
 * @description: 销售点单详情
 * @date 2024/10/15 17:58
 */
@Data
@TableName("sales_order_detail")
public class OrderDetails {
    //订单详情id
    @TableId(type = IdType.AUTO)
    private Integer id;
    //订单id
    private Integer orderId;
    //商品Id
    private Integer productId;
    //商品数量
    private Integer total;
    //商品单价
    private Integer price;
    //商品总价
    private Integer totalAmount;
    //商品关联
    @TableField(exist = false)
    private Inventory inventory;

}
